component accessors="true" extends="controllerbase" {
	property adstemplate;
	this.entityObj = "adstemplate";
	
	public void function list(rc){
		//当前模块分页条件
		var moduleSqlWhere = "";
		if( structKeyExists(rc, "type") && len(trim(rc.type)) >0 ){
			var moduleSqlWhere = " and  type = #rc.type# ";
		}
		
		super.list(rc,moduleSqlWhere);
	}

	public void function preview(rc){
		rc.data = variables.adstemplate.preview(rc);
	}
}